import request from '@/utils/request'

// 查询微信参数配置列表
export function listParam(query) {
  return request({
    url: '/wxconfig/param/list',
    method: 'get',
    params: query
  })
}

// 查询微信参数配置详细
export function getParam(id) {
  return request({
    url: '/wxconfig/param/' + id,
    method: 'get'
  })
}

// 新增微信参数配置
export function addParam(data) {
  return request({
    url: '/wxconfig/param',
    method: 'post',
    data: data
  })
}

// 修改微信参数配置
export function updateParam(data) {
  return request({
    url: '/wxconfig/param',
    method: 'put',
    data: data
  })
}

// 删除微信参数配置
export function delParam(id) {
  return request({
    url: '/wxconfig/param/' + id,
    method: 'delete'
  })
}
